﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

public class ControlCamera : MonoBehaviour
{
    [SerializeField]
    UniversalRendererData rendererData;

    [Range(0, 20)] public int blurStrength = 5;

    // Start is called before the first frame update
    void Start()
    {
        // var cam = GetComponent<Camera>();
        // cam.GetUniversalAdditionalCameraData().SetRenderer(0);
    }

    // Update is called once per frame
    void Update()
    {
        (rendererData.rendererFeatures[0] as BlurRenderPassFeature).blurStrength = blurStrength;
        // rendererData.SetDirty();
    }
}
